package com.yuan.config;

import com.yuan.pojo.Student;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = "com.yuan")
public class SpringConfig {

        // 装配
        // 自己的类就不用这种操作，直接扫描
        @Bean("student")
        public Student getStudent() {
            return new Student();
        }



}
